
package com.sy.core.service;


import com.sy.core.mapper .HrStaffMapper;
import com.sy.core.model.HrStaff;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;





/**
 * 	TODO 请用一句话描述该类的作用
 * @version 1.0
 * @since 1.0
 */

@Service("HrStaffService")
public class HrStaffService  {

	protected final Logger logger = LoggerFactory.getLogger(HrStaffService.class);

   	@Autowired
    private HrStaffMapper  hrStaffMapper;

	/**
	 * All rights Reserved, Designed By Chong.CaiXin
	 * @Description: (查询对象集合)
	 * @author: Chong.CaiXin
	 * @version V1.0
	 *
	 */
	public List<HrStaff> queryByCondition(HrStaff hrStaff){
		return hrStaffMapper.queryByCondition(hrStaff);
	};

	/**
	 * All rights Reserved, Designed By Chong.CaiXin
	 * @Description: (根据主键查询对象)
	 * @author: Chong.CaiXin
	 * @version V1.0
	 *
	 */
	public HrStaff queryByPrimaryKey(String key){
		return hrStaffMapper.queryByPrimaryKey(key);
	};

	/**
	 * All rights Reserved, Designed By Chong.CaiXin
	 * @Description: (新增单个对象)
	 * @author: Chong.CaiXin
	 * @version V1.0
	 *
	 */
	public void insert(HrStaff hrStaff){ hrStaffMapper.insertSelective(hrStaff);};
	/**
	 * All rights Reserved, Designed By Chong.CaiXin
	 * @Description: (修改单个对象)
	 * @author: Chong.CaiXin
	 * @version V1.0
	 *
	 */
	public void update(HrStaff hrStaff){ hrStaffMapper.updateSelective(hrStaff);};


	/**
	 * All rights Reserved, Designed By Chong.CaiXin
	 * @Description: (根据主键删除对象)
	 * @author: Chong.CaiXin
	 * @version V1.0
	 *
	 */
	public void delete(String pk){ hrStaffMapper.deleteByPrimaryKey(pk);};


}
